﻿using System;
using WholeSlideImageLibrary.Formats.Dmetrix;

namespace WholeSlideImageLibrary
{
    public static class DmetrixReaderBuilderExtensions
    {
        public static IWholeSlideImageReaderBuilder AddDmetrix(this IWholeSlideImageReaderBuilder builder)
        {
            if (builder is null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            builder.AddFormat(new DmetrixImageIdentifier());

            return builder;
        }
    }
}
